package entity;

import java.io.Serializable;
import java.sql.Date;

public class Result implements Serializable {
	private long id;
	private Date exam_date;
	private long sb_id;
	private long st_id;
	private float score;
	private Subject subject;
	private Student student;

	@Override
	public String toString() {
		return "Result [id=" + id + ", exam_date=" + exam_date + ", sb_id=" + sb_id + ", st_id=" + st_id + ", score="
				+ score + "]";
	}

	public Result() {

	}

	public Result(long id, Date exam_date, long sb_id, long st_id, float score) {
		super();
		this.id = id;
		this.exam_date = exam_date;
		this.sb_id = sb_id;
		this.st_id = st_id;
		this.score = score;
	}

	public Result(Date exam_date, long sb_id, long st_id, float score) {
		super();
		this.exam_date = exam_date;
		this.sb_id = sb_id;
		this.st_id = st_id;
		this.score = score;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Date getExam_date() {
		return exam_date;
	}

	public void setExam_date(Date exam_date) {
		this.exam_date = exam_date;
	}

	public long getSb_id() {
		return sb_id;
	}

	public void setSb_id(long sb_id) {
		this.sb_id = sb_id;
	}

	public long getSt_id() {
		return st_id;
	}

	public void setSt_id(long st_id) {
		this.st_id = st_id;
	}

	public float getScore() {
		return score;
	}

	public void setScore(float score) {
		this.score = score;
	}

	public Subject getSubject() {
		return subject;
	}

	public void setSubject(Subject subject) {
		this.subject = subject;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

}